import { translateTitle } from '@/utils/i18n'
const ApplyList = {
  ApplyList: {
    search: {
      form: {
        method: 'sysAppServiceImpl.queryTable',
        name: 'search',
        field: [
          {
            type: 'input',
            name: 'APP_NAME',
            label: translateTitle('Dams.ApplicationInterface.应用名称'),
            labelHidden: false,
          },
          {
            type: 'button',
            label: translateTitle('Dams.ApplicationInterface.查询'),
            labelHidden: true,
          },
        ],
      },
    },
    dialog: {
      form: {
        method: '',
        name: 'dialog',
        field: [
          {
            type: 'selectRemote',
            name: 'APP_NAME',
            label: translateTitle('Dams.ApplicationInterface.应用名称'),
            labelHidden: false,
            filterable: true,
            isRules: true,
            options: [],
          },
          {
            type: 'input',
            name: 'APP_CODE',
            label: translateTitle('Dams.ApplicationInterface.应用CODE'),
            labelHidden: false,
            disabled_edit: true,
            isRules: true,
          },
          {
            type: 'input',
            name: 'URL',
            label: translateTitle('Dams.ApplicationInterface.应用URL'),
            labelHidden: false,
            isRules: true,
          },
          {
            type: 'input',
            name: 'APP_CODE_ALIAS',
            label: translateTitle('Dams.ApplicationInterface.系统代码别名'),
            labelHidden: false,
            isRules: true,
          },
          {
            type: 'imgUpload',
            name: 'BACKGROUND_IMAGE_BASE64',
            label: translateTitle('Dams.ApplicationInterface.背景图片地址'),
            labelHidden: false,
          },
          {
            type: 'imgUpload',
            name: 'LOGO_IMAGE_BASE64',
            label: translateTitle('Dams.ApplicationInterface.系统LOGO'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'COPYRIGHT',
            label: translateTitle('Dams.ApplicationInterface.版权信息'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'WATERMARK_TITLE',
            label: translateTitle('Dams.ApplicationInterface.水印标题'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'WATERMARK_DESC',
            label: translateTitle('Dams.ApplicationInterface.水印描述'),
            labelHidden: false,
          },
          {
            type: 'switch',
            name: 'WATERMARK_SWITCH',
            label: translateTitle('Dams.ApplicationInterface.水印开关'),
            labelHidden: false,
            value: 'N',
            activeValue: 'Y',
            inactiveValue: 'N',
          },
          {
            type: 'switch',
            name: 'MUTEX',
            label: translateTitle('Dams.ApplicationInterface.互踢开关'),
            labelHidden: false,
            value: 'N',
            activeValue: 'Y',
            inactiveValue: 'N',
          },
          {
            type: 'input',
            name: 'SORT',
            label: translateTitle('Dams.ApplicationInterface.排序'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'NO_OPERATION_TIME',
            label: translateTitle('Dams.ApplicationInterface.未操作时长'),
            labelHidden: false,
            placeholder: `(${translateTitle('Dams.ApplicationInterface.单位')}/${translateTitle('Dams.ApplicationInterface.分钟')})`,
          },
          {
            type: 'button',
            label: translateTitle('Dams.ApplicationInterface.提交'),
            labelHidden: true,
            isRules: true,
          },
        ],
      },
    },
    deleteMethod: 'sysAppServiceImpl.delete',
    updateMethod: 'sysAppServiceImpl.update',
    addMethod: 'sysAppServiceImpl.save',
  },
}
export default ApplyList
